<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:set var="reportTitle" value="PECVD膜厚值ID查询报表" scope="session"/>

<%@ include file="/common/report_head.jsp" %>
<%@ include file="/condition/sartTime_input.html"%>
<%@ include file="/condition/endTime_input.html"%>
<%@ include file="/condition/line_sumo.html"%>
<%@ include file="/condition/tool_sumo.html"%>
<%@ include file="/condition/pipeNumber_sumo.html"%>
<%@ include file="/condition/zhNumber_sumo.html"%>
<%@ include file="/condition/zhCount_sumo.html"%>
<%@ include file="/condition/zhPlace_sumo.html"%>
<%@ include file="/condition/pecvdId_text.html"%>

<%@ include file="/common/report_middle.jsp" %>
<div class="col-md-12" style="height: 820px;">
    <div id="pqGrid"></div>
</div>
<%@include file="/common/report_end.jsp" %>


<script>
    $(document).ready(function () {
        $("title").text("PECVD膜厚值ID查询报表");
        $("label:contains('ID号:')").addClass("keyCss");

        $('#query_btn').click(function (){
            if($("#pecvdIdText").val() === null || $("#pecvdIdText").val() === ''){
                showErrorDialog("0000002", "请输入模糊查询的ID号!"); return false;
            }
            initGridAndChart();
            ajax('/jn-report/report/pecvd_4_report.do' ,loadConditionMapData(), true, ajax_successful);

            function ajax_successful(outTrxObj) {
                if(outTrxObj.gridData.length < 1) { showMessengerDialog("数据查询为空"); return false; }

                //grid表格数据
                var colM =[
                    {halign:"center",align:'center', dataIndx: 'fab_id_fk',     title: '厂别',       width: 100, editable: false, sortable: true},
                    {halign:"center",align:'center', dataIndx: 'line_id_fk',    title: '线别',       width: 120, editable: false, sortable: true},
                    {halign:"center",align:'center', dataIndx: 'tool_id_fk',    title: '设备',       width: 130, editable: false, sortable: true},
                    {halign:"center",align:'center', dataIndx: 'pipeNumber',    title: '管号',       width: 100, editable: false, sortable: true},
                    {halign:"center",align:'center', dataIndx: 'zhNumber',      title: '舟号',       width: 100, editable: false, sortable: true},
                    {halign:"center",align:'center', dataIndx: 'zhCount',       title: '舟使用次数', width: 100, editable: false, sortable: true},
                    {halign:"center",align:'center', dataIndx: 'zhPlace',       title: '舟位置',     width: 100, editable: false, sortable: true},
                    {halign:"center",align:'center', dataIndx: 'filmThickness', title: '膜厚值',     width: 120, editable: false, sortable: true},
                    {halign:"center",align:'center', dataIndx: 'grade',         title: '等级',       width: 100, editable: false, sortable: true},
                    {halign:"center",align:'center', dataIndx: 'rpt_timestamp', title: '上报时间',   width: 220, editable: false, sortable: true},
                    {halign:"center",align:'center', dataIndx: 'id',            title: 'ID号',       width: 220, editable: false, sortable: true}
                ];
                _pqUtil.f.setColModel($("#pqGrid"), colM);
                _pqUtil.f.seTitle($("#pqGrid"), "PECVD膜厚值ID查询报表-表格");
                _pqUtil.f.isShowTitle($("#pqGrid"), false);
                _pqUtil.f.loadPqGridData($("#pqGrid"), outTrxObj.gridData);
            }
        });

    });
</script>
